<?php
require_once 'CMS/Util.php';
require_once 'CMS/Mvc/BaseController.php';
require_once 'CMS/Mvc/BaseUserController.php';
require_once 'CMS/UserCommon.php';
include "CMS/class.phpmailer.php"; 
include "CMS/class.smtp.php"; 
include "CMS/class.pop3.php";

//Người tạo : Nguyễn Nghĩa Hưng - Team 3
//Module 	: Logout
//Chức năng	: log in và log out

class Login_LoginController extends BaseUserController
{
	public function init()
	{
		parent::init();
	}
	

	//action log out
	public function logoutAction() 
	{
        if(($_GET['act']==2)and(isset($_SESSION['id_user'])))
		{
			unset($_SESSION['id_user']);
			unset($_SESSION['user_name']);
			header("Location: /");
		}
	}
}
?>